#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int bidui(char *arr0,char *arr1,int sz1,int sz2)
{
	int a, b, c;
	if(sz1==sz2)
	{
		for (a = 0; a < sz1;a++)
		{
			for (b = 0; b < sz1-2; b++)
			{
				if (b != sz1-2 || b != sz1 - 1)
				{
					c = *(arr0 + b);
					*(arr0 + b) = *(arr0 + b + 1);
					*(arr0 + b + 1) = c;
				}
			}
			if (arr0 == arr1)
			{
				return 1;
			}
		}
	}
	return 0;
}
int main()
{
	char arr0[] = { "abcdef" };
	char arr1[] = { "defabd" };
	int sz1 = sizeof(arr0) / sizeof(arr0[0]);
	int sz2 = sizeof(arr1) / sizeof(arr1[0]);

	int a = bidui(arr0, arr1,sz1,sz2);
	printf("%d", a);
	return 0;
}